package ru.demo.abstarctservice.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Id;
import jakarta.persistence.MappedSuperclass;
import lombok.Getter;
import lombok.Setter;

import java.util.UUID;

@Getter
@Setter
@MappedSuperclass
public abstract class BaseEntity {

    @Id
    @Schema(description = "Идентификатор",
            accessMode = Schema.AccessMode.READ_ONLY)
    private UUID id;

}
